package data;

public class Tree {
    private int n;
    private int[] dad;

    public int getN() {
        return n;
    }

    public void setN(int n) {
        this.n = n;
        dad = new int[n + 1];
    }

    public int getDad(int i) {
        return dad[i];
    }

    public void setDad(int i, int d) {
        dad[i] = d;
    }

}
